package com.example.commonmistak.designpatterns.reflection.api;

import com.example.commonmistak.designpatterns.reflection.anno.BankApi;
import com.example.commonmistak.designpatterns.reflection.anno.BankApiField;
import lombok.Data;

/**
 * @author xiongwei
 * @date 2022/1/19 14:10
 */
@BankApi(url = "http://baseURL/reflection/bank/createUser", desc = "创建用户")
@Data
public class CreateUserApi extends AbstractApi{
    @BankApiField(order = 1, length = 10, type = "S")
    private String name;

    @BankApiField(order = 2, length = 18, type = "S")
    private String identity;

    @BankApiField(order = 3, length = 5, type = "N")
    private int age;

    @BankApiField(order = 4, length = 11, type = "S")
    private String mobile;
}
